package com.doctor.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import com.doctor.entity.Doctor;

public interface DoctorService {

    Page<Doctor> findAll(PageRequest pageRequest);

    Doctor findById(Long id);

    void saveOrUpdate(Doctor doctor);

    void delete(Long id);

    List<Doctor> findAllMan();

	Page<Doctor> findByDepartmentId(long deparmentId, Pageable pageable);

}
